/*
 * @Author: Hzt
 * @Date: 2024-01-11 17:48:43
 * @LastEditTime: 2025-05-27 16:42:06
 * @LastEditors: Hzt
 * @Description: ***
 * @FilePath: \cty_admin\src\api\withdrawal.js
 */
import { post, get } from "@/utils/request";

//提现设置
export function fetchWithdrawalSetting() {
  return get("/withdraw/set/getSetting");
}
//修改提现设置
export function fetchUpdateWithdrawalSetting(data) {
  return post("/withdraw/set/updateSetting", data);
}

export function makeSure(data) {
  return post("/withdraw/makeSure", data);
}

export function getAuthority(userId) {
  return get(`/purse/getAuthority/${userId}`);
}
export function withdrawalAmount() {
  return get(`/withdraw/withdrawalAmount`);
}
export function purseAuthority(data) {
  return post("/purse/authority", data);
}

export function confirmPayment(data) {
  return post("/withdraw/confirmPayment", data);
}

export function deduction(data) {
  return post("/withdraw/deduction", data);
}
